package com.example.config;

import com.example.interceptor.DemoInterceptor;
import com.example.interceptor.TokenInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Auther: Sun
 * @Date: 2025/9/24 - 09 - 24 - 13:25
 * @Description: com.example
 */
@Configuration
public class config implements WebMvcConfigurer {

//    @Autowired
//    private DemoInterceptor demoInterceptor;
////    @Autowired
////    private TokenInterceptor tokenInterceptor;
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(demoInterceptor).addPathPatterns("/**").excludePathPatterns("/login");
//
////        registry.addInterceptor(tokenInterceptor).addPathPatterns("/*").excludePathPatterns("/login");
//
//    }

}


